home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / lib / init / vars.sh < prev   
Encoding:
Text File  |  2012-03-27  |  865 b   |  40 lines

  1. #
  2. # Set rcS vars
  3. #
  4.  
  5. # Source conffile
  6. if [ -f /etc/default/rcS ]; then
  7.     . /etc/default/rcS
  8. fi
  9.  
  10. # Parse kernel command line
  11. if [ -r /proc/cmdline ]; then
  12.     for ARG in $(cat /proc/cmdline); do
  13.         case $ARG in
  14.  
  15.             # check for bootoption 'noswap' and do not activate swap
  16.             # partitions/files when it is set.
  17.             noswap)
  18.         NOSWAP=yes
  19.         break
  20.         ;;
  21.  
  22.             # Accept the same 'quiet' option as the kernel, but only
  23.             # during boot and shutdown.  Only use this rule when the
  24.             # variables set by init.d/rc is present.
  25.             quiet)
  26.         if [ "$RUNLEVEL" ] && [ "$PREVLEVEL" ] ; then
  27.             VERBOSE="no"
  28.         fi
  29.         break
  30.         ;;
  31.     esac
  32.     done
  33. fi
  34.  
  35. # But allow both rcS and the kernel options 'quiet' to be overrided
  36. # when INIT_VERBOSE=yes is used as well.
  37. if [ "$INIT_VERBOSE" ] ; then
  38.     VERBOSE="$INIT_VERBOSE"
  39. fi
  40.